package com.itheima.manager.factory;

import com.itheima.manager.dao.BaseStudentDao;
import com.itheima.manager.dao.StudentDao;

public class StudentDaoFactory {
    private static BaseStudentDao dao;

    public static BaseStudentDao getStudent(){
        if(dao == null){
            dao = new StudentDao();
        }
        return dao;

    }
}
